package com.rabbitmq.demo.service;


import com.rabbitmq.demo.pojo.User;

public interface UserService {
    /**
     * 注册接口
     * @param email
     * @param password
     * @return
     */
    boolean register(String email, String password);

    /**
     * 判断邮箱是否已经注册
     * @param email
     * @return
     */
    boolean isRegistered(String email);


    User findUserByEmail(String email);
}
